package com.modbus.tcp.domain;

import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import org.springframework.stereotype.Repository;

import java.io.Serializable;
import java.util.Date;

/**
 * 球阀modbus地址表 ballvalveaddr
 *
 * @author d
 * @date 2024-01-11
 */
@Data
@Repository
public class Ballvalveaddr implements Serializable {
    private static final long serialVersionUID=1L;


    @ApiModelProperty(value = "球阀ID")
    @TableField(value = "ballvalueid")
    private Integer ballvalueid;


    @ApiModelProperty(value = "服务器ID")
    @TableField(value = "modbusid")
    private Integer modbusid;


    @ApiModelProperty(value = "分区编号")
    @TableField(value = "partcode")
    private Integer partcode;


    @ApiModelProperty(value = "名称")
    @TableField(value = "name")
    private String name;


    @ApiModelProperty(value = "设备ID")
    @TableField(value = "slaveaddr")
    private Integer slaveaddr;


    @ApiModelProperty(value = "功能号")
    @TableField(value = "functioncode")
    private Integer functioncode;


    @ApiModelProperty(value = "寄存器地址")
    @TableField(value = "dataaddr")
    private Integer dataaddr;


    @ApiModelProperty(value = "寄存器数量")
    @TableField(value = "datalen")
    private Integer datalen;


    @ApiModelProperty(value = "读写数据")
    @TableField(value = "dataarea")
    private String dataarea;


    @ApiModelProperty(value = "修改时间")
    @TableField(value = "datadate")
    private Date datadate;

    @ApiModelProperty(value = "读卡分站编号")
    @TableField(value = "cardnumber")
    private Integer cardnumber;



    @ApiModelProperty(value = "灭火位置ID")
    @TableField(exist = false)
    private Integer id;
}